import { Controller } from "egg";
export default class SortController extends Controller {
    /**
     * 获取电影分类类型
     * */
    public async getVideoSort() {
        const { ctx } = this;
        // ctx.body = "<h1>" + (await ctx.service.app.user.getUserInfo()) + "</h1>";
        ctx.body = await ctx.service.admin.sort.getVideoSort()
    }
    /**
     * 保存电影分类类型
     * */
    public async saveVideoSort() {
        const { ctx } = this;
        // ctx.body = "<h1>" + (await ctx.service.app.user.getUserInfo()) + "</h1>";
        ctx.body = await ctx.service.admin.sort.saveVideoSort()
    }
    /**
     * 获取电影分类类型
     * */
    public async getVideoRegions() {
        const { ctx } = this;
        // ctx.body = "<h1>" + (await ctx.service.app.user.getUserInfo()) + "</h1>";
        ctx.body = await ctx.service.admin.sort.getVideoRegions()
    }
    /**
     * 保存电影分类类型
     * */
    public async saveVideoRegions() {
        const { ctx } = this;
        // ctx.body = "<h1>" + (await ctx.service.app.user.getUserInfo()) + "</h1>";
        ctx.body = await ctx.service.admin.sort.saveVideoRegions()
    }
}